package com.neno.consumer.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: root
 * @Date: 2018/11/10 6:04
 */
@Component
public class TopicConsumer1 {
    @RabbitListener(queues = "topic.messages")
    @RabbitHandler
    public void process(String message) {
        System.out.println("Topic Receiver1  : " + message);
    }
}
